//
//  RecommendViewController.swift
//  DYSwiftFramework
//
//  Created by huangdeyu on 2021/10/21.
//  Copyright © 2021 none. All rights reserved.
//

import UIKit

class RecommendViewController: UIViewController,SubPageProtocol {

    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.random
        print("推荐viewDidLoad")
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        print("推荐viewWillAppear")
    }
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        print("推荐viewDidAppear")
    }
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        print("推荐viewWillDisappear")
    }
    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        print("推荐viewDidDisappear")
    }
    
    var visiable: Bool = false {
        willSet  {
            if newValue {
                print("切换至推荐页")
            }
            
        }
    }
}
